<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><strong>CaptureView</strong></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>CaptureView</code></h1>
<p>相机控件,继承自View</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/View.html#">View</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#CaptureView:new">CaptureView:new ()</a></td>
	<td class="summary">创建</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:getDeviceCount">CaptureView:getDeviceCount ()</a></td>
	<td class="summary">获取摄像头数量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:getDeviceInfo">CaptureView:getDeviceInfo (index)</a></td>
	<td class="summary">获取摄像头信息</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:getCapabilityCount">CaptureView:getCapabilityCount (uniqueid)</a></td>
	<td class="summary">获取摄像头支持的分辨率数量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:getCapability">CaptureView:getCapability (uniqueid, index)</a></td>
	<td class="summary">获取摄像头分辨率信息</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:startCapture">CaptureView:startCapture (uniqueid, capabilityInfo)</a></td>
	<td class="summary">开始摄像</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:stopCapture">CaptureView:stopCapture ()</a></td>
	<td class="summary">停止摄像</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:setTagetFrameSize">CaptureView:setTagetFrameSize (width, height)</a></td>
	<td class="summary">设置捕获的画面尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:setTagetFrameRotation">CaptureView:setTagetFrameRotation (rotation)</a></td>
	<td class="summary">设置捕获的画面旋转度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:setBrighten">CaptureView:setBrighten (brighten)</a></td>
	<td class="summary">设置捕获的画面的亮度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CaptureView:setSkinSmooth">CaptureView:setSkinSmooth (smooth)</a></td>
	<td class="summary">设置捕获的画面皮肤美颜</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "CaptureView:new"></a>
    <strong>CaptureView:new ()</strong>
    </dt>
    <dd>
    创建



    <h3>Returns:</h3>
    <ol>

        CaptureView
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:getDeviceCount"></a>
    <strong>CaptureView:getDeviceCount ()</strong>
    </dt>
    <dd>
    获取摄像头数量



    <h3>Returns:</h3>
    <ol>

        count
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:getDeviceInfo"></a>
    <strong>CaptureView:getDeviceInfo (index)</strong>
    </dt>
    <dd>
    获取摄像头信息


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        info
info 包含name和uniqueid
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:getCapabilityCount"></a>
    <strong>CaptureView:getCapabilityCount (uniqueid)</strong>
    </dt>
    <dd>
    获取摄像头支持的分辨率数量


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">uniqueid</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        count
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:getCapability"></a>
    <strong>CaptureView:getCapability (uniqueid, index)</strong>
    </dt>
    <dd>
    获取摄像头分辨率信息


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">uniqueid</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        info
info 包含width,height,maxFPS,expectedCaptureDelay,rawType,codecType，interlaced
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:startCapture"></a>
    <strong>CaptureView:startCapture (uniqueid, capabilityInfo)</strong>
    </dt>
    <dd>
    开始摄像


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">uniqueid</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
        <li><span class="parameter">capabilityInfo</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        ok
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:stopCapture"></a>
    <strong>CaptureView:stopCapture ()</strong>
    </dt>
    <dd>
    停止摄像



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        ok
    </ol>




</dd>
    <dt>
    <a name = "CaptureView:setTagetFrameSize"></a>
    <strong>CaptureView:setTagetFrameSize (width, height)</strong>
    </dt>
    <dd>
    设置捕获的画面尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">width</span>
            <span class="types"><span class="type">int</span></span>



        </li>
        <li><span class="parameter">height</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CaptureView:setTagetFrameRotation"></a>
    <strong>CaptureView:setTagetFrameRotation (rotation)</strong>
    </dt>
    <dd>
    设置捕获的画面旋转度


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rotation</span>
            <span class="types"><span class="type">int</span></span>
         支持0，90,180,270
        </li>
    </ul>





</dd>
    <dt>
    <a name = "CaptureView:setBrighten"></a>
    <strong>CaptureView:setBrighten (brighten)</strong>
    </dt>
    <dd>
    设置捕获的画面的亮度


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">brighten</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CaptureView:setSkinSmooth"></a>
    <strong>CaptureView:setSkinSmooth (smooth)</strong>
    </dt>
    <dd>
    设置捕获的画面皮肤美颜


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">smooth</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
